#include <iostream>
using namespace std;
int main()
{
int a,b,i;
cin>>a;
b=1;
for(i=1;i<a;i++)
{
b*=1;
if(b%3==0)b/=3;
if(b%5==0)b/=5;	
}
cout <<b<<endl;
return 0;	
}
//输入8 输出1
